/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package socof.wget;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author Carlos
 */
public class SOCOFWget
{
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException, InterruptedException 
    {
        // base url to db
        WebResource wr = new WebResource("http://www.supertangas.com", "C:\\Users\\Carlos\\Downloads\\wget\\");
        PendingQueue.getInstance().offer(wr);
        
        Laucher lb = Laucher.getInstance();
        lb.setMaxBandwithAllocation(100000);
        lb.setMaxCpuUsage(0.1);        
        lb.setDownloadersLimit(2);
        lb.setParsersLimit(3);
        
        lb.start();
        
        /*System.out.println("Enter something to finish: ");
        InputStreamReader converter = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(converter);
        in.readLine();*/
        
        //lb.interrupt();
        lb.join();
    }
}
